package com.example.teesystem.entity.vo.IssueRecord;

import com.example.teesystem.entity.Exam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

/**
 * @author pxr
 * @data 2022/4/14 19:42
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class IssueRecordInsertVo {
    @NotNull(message = "issueId值不能为空")
    private Integer issueId;

    private String answer = "";

    public IssueRecordInsertVo(Exam exam){
        BeanUtils.copyProperties(exam, this);
    }
}
